using System;
using System.Runtime.Serialization;

namespace AsNum.MySecret.Entity.Database {    
	/// <summary>
	/// Table : dbo.Message
	/// 消息
	/// </summary>
	[Serializable]
	[DataContract]
    public class MessageEntity {

			

		
		/// <summary>
		/// 自动编号
		/// dbo.Message.MessageID
		/// </summary>
		[DataMember]
		public int MessageID{
			get;set;
		}
					

		
		/// <summary>
		/// 标题
		/// dbo.Message.Title
		/// </summary>
		[DataMember]
		public string Title{
			get;set;
		}
					

		
		/// <summary>
		/// 内容
		/// dbo.Message.Ctx
		/// </summary>
		[DataMember]
		public string Ctx{
			get;set;
		}
					

		
		/// <summary>
		/// 用户ID，如果为空，就是匿名发送
		/// dbo.Message.UserID
		/// </summary>
		[DataMember]
		public int UserID{
			get;set;
		}
					

		
		/// <summary>
		/// 发送者IP
		/// dbo.Message.FromIP
		/// </summary>
		[DataMember]
		public long FromIP{
			get;set;
		}
					

		
		/// <summary>
		/// 发送者内网IP，留扩展
		/// dbo.Message.IntranetIP
		/// </summary>
		[DataMember]
		public long IntranetIP{
			get;set;
		}
					

		
		private DateTime createTime = new DateTime();
		/// <summary>
		/// 
		/// dbo.Message.CreateTime
		/// 默认值(getdate())
        /// </summary>
		[DataMember]
		public DateTime CreateTime{
			get{
				return createTime;
			}
			set{
				createTime = value;
			}
		}
					

		
		private bool isPublic = true;
		/// <summary>
		/// 是否公开
		/// dbo.Message.IsPublic
		/// 默认值((1))
        /// </summary>
		[DataMember]
		public bool IsPublic{
			get{
				return isPublic;
			}
			set{
				isPublic = value;
			}
		}
			
	}
}
